package jd2;

import jd2.entity.Equip;
import jd2.entity.Player;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EquipTest2 {
    @Test
    public void testEquip(){
        ApplicationContext context=new ClassPathXmlApplicationContext("jd2/jd2.xml");
        Player player=(Player)context.getBean("zhangsan");
        Equip equip=new Equip();
        equip.setType("指环");
        equip.setAttackPlus(6L);
        equip.setSpeedPlus(6L);
        equip.setDefencePlus(6L);
        equip.setName("指环");
        player.updateEquip(equip);
    }
}
